<?php
/**
 * Created by PhpStorm.
 * User: liuxin
 * Date: 2018/8/12
 * Time: 下午7:32
 */

namespace common\models;

use yii\db\ActiveRecord;

class Proxy extends ActiveRecord
{
    public function __call($name, $arguments)
    {
       $redis = \common\components\Factory::Redis();
       return (new \Yii::$app->cacheRedis($redis))->get($this, $name, $arguments);
    }
}